package com.zzx.graduation.repository;

import com.zzx.graduation.entity.News;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface NewsRepository  extends JpaRepository<News,Integer> {
    List<News> findAllBySourceId(Integer sourceId);
    List<News> findAllByTargetIdAndTargetType(Integer targetId, Integer targetType);

}
